#define _CRT_SECURE_NO_WARNINGS 1


#include<stdio.h>
int main()
{
    char ch[10000] = { 0 };
    int i = 0;
    do
    {
        scanf("%c", &ch[i]);
        i++;
    } while (ch[i - 1] != '\n');
    int num = 0;
    while (ch[num] != '\0')
    {
        num++;
    }
    for ( i = 0; i < (num - 1) / 2; i++)
    {
        int tmp = ch[num - 2 - i];
        ch[num - 2 - i] = ch[i];
        ch[i] = tmp;

    }
    for (int j = 0; j < num; j++)
    {
        printf("%c", ch[j]);
    }
    return 0;
}